<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>OpenLayers v8.2.0 API - Class: Draw</title>
    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"
        crossorigin="anonymous"></script>
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/fontawesome.min.css"
        crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/solid.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/brands.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="styles/prettify-tomorrow.css">
    <link rel="stylesheet" type="text/css" href="styles/jaguar.css">
    <link rel="stylesheet" type="text/css" href="styles/carbon.css">
    <link rel="stylesheet" type="text/css" href="/theme/ol.css">
    <link rel="stylesheet" type="text/css" href="/theme/site.css">
</head>

<body>
    <header class="navbar navbar-expand-sm navbar-dark mb-3 px-3 py-0 fixed-top" role="navigation">
        <a class="navbar-brand" href="/"><img src="/theme/img/logo-dark.svg" width="70" height="70"
                alt="">&nbsp;OpenLayers</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#olmenu"
            aria-controls="olmenu" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <!-- menu items that get hidden below 768px width -->
        <nav class="collapse navbar-collapse" id="olmenu">
            <ul class="nav navbar-nav ms-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="docdropdown" role="button"
                        data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Docs</a>
                    <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="docdropdown">
                        <a class="dropdown-item" href="/doc/">Docs</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="/doc/quickstart.html"><i
                                class="fa fa-check fa-fw me-2 fa-lg"></i>快速入门</a>
                        <a class="dropdown-item" href="/doc/faq.html"><i
                                class="fa fa-question fa-fw me-2 fa-lg"></i>FAQ</a>
                        <a class="dropdown-item" href="/doc/tutorials/"><i
                                class="fa fa-book fa-fw me-2 fa-lg"></i>Tutorials</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="https://stackoverflow.com/questions/tagged/openlayers"><i
                                class="fab fa-stack-overflow fa-fw me-2"></i>Ask a Question</a>
                    </div>
                </li>
                <li class="nav-item"><a class="nav-link" href="/en/latest/examples/">Examples</a></li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="apidropdown" role="button"
                        data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <i class="fa fa-sitemap me-1"></i>API
                    </a>
                    <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="apidropdown">
                        <a class="dropdown-item" href="/en/latest/apidoc/"><i
                                class="fa fa-sitemap fa-fw me-2 fa-lg"></i>v8.2.0
                            (latest)</a </div>
                </li>
            </ul>
        </nav>
    </header>

    <div class="container-fluid">
        <div id="wrap" class="row">
            <div class="navigation col-md-4 col-lg-3">
                <div class="search-wrapper">
                    <div class="search">
                        <input id="search" type="text" autocomplete="off" class="form-control input-sm"
                            placeholder="Search Documentation">
                    </div>
                </div>
                <div class="navigation-list-wrapper">
                    <ul class="navigation-list search-empty">
                        <li class="item item-class toggle-manual toggle-manual-show"
                            data-longname="module:ol/interaction/Draw~Draw" data-name="ol/interaction/draw">
                            <span class="title toggle">
                                <span class="fa fa-chevron-right me-2 mt-1"></span>
                                <span><a href="module-ol_interaction_Draw-Draw.html">ol​/interaction​/Draw</a></span>
                            </span>
                            <div class="member-list" data-type="methods">
                                <span class="subtitle">Methods</span>
                                <ul>
                                    <li data-name="abortdrawing"><a
                                            href="module-ol_interaction_Draw-Draw.html#abortDrawing">abortDrawing</a>
                                    <li data-name="appendcoordinates"><a
                                            href="module-ol_interaction_Draw-Draw.html#appendCoordinates">appendCoordinates</a>
                                    <li data-name="changed"><a
                                            href="module-ol_interaction_Draw-Draw.html#changed">changed</a>
                                    <li data-name="dispatchevent"><a
                                            href="module-ol_interaction_Draw-Draw.html#dispatchEvent">dispatchEvent</a>
                                    <li data-name="extend"><a
                                            href="module-ol_interaction_Draw-Draw.html#extend">extend</a>
                                    <li data-name="finishdrawing"><a
                                            href="module-ol_interaction_Draw-Draw.html#finishDrawing">finishDrawing</a>
                                    <li data-name="get"><a href="module-ol_interaction_Draw-Draw.html#get">get</a>
                                    <li data-name="getactive"><a
                                            href="module-ol_interaction_Draw-Draw.html#getActive">getActive</a>
                                    <li data-name="getkeys"><a
                                            href="module-ol_interaction_Draw-Draw.html#getKeys">getKeys</a>
                                    <li data-name="getmap"><a
                                            href="module-ol_interaction_Draw-Draw.html#getMap">getMap</a>
                                    <li data-name="getoverlay"><a
                                            href="module-ol_interaction_Draw-Draw.html#getOverlay">getOverlay</a>
                                    <li data-name="getpointercount"><a
                                            href="module-ol_interaction_Draw-Draw.html#getPointerCount">getPointerCount</a>
                                    <li data-name="getproperties"><a
                                            href="module-ol_interaction_Draw-Draw.html#getProperties">getProperties</a>
                                    <li data-name="getrevision"><a
                                            href="module-ol_interaction_Draw-Draw.html#getRevision">getRevision</a>
                                    <li data-name="handleevent"><a
                                            href="module-ol_interaction_Draw-Draw.html#handleEvent">handleEvent</a>
                                    <li data-name="on"><a href="module-ol_interaction_Draw-Draw.html#on">on</a>
                                    <li data-name="once"><a href="module-ol_interaction_Draw-Draw.html#once">once</a>
                                    <li data-name="removelastpoint"><a
                                            href="module-ol_interaction_Draw-Draw.html#removeLastPoint">removeLastPoint</a>
                                    <li data-name="set"><a href="module-ol_interaction_Draw-Draw.html#set">set</a>
                                    <li data-name="setactive"><a
                                            href="module-ol_interaction_Draw-Draw.html#setActive">setActive</a>
                                    <li data-name="setproperties"><a
                                            href="module-ol_interaction_Draw-Draw.html#setProperties">setProperties</a>
                                    <li data-name="un"><a href="module-ol_interaction_Draw-Draw.html#un">un</a>
                                    <li data-name="unset"><a href="module-ol_interaction_Draw-Draw.html#unset">unset</a>
                                </ul>
                            </div>
                            <div class="member-list" data-type="fires">
                                <span class="subtitle">Fires</span>
                                <ul>
                                    <li data-name="change"><a
                                            href="module-ol_events_Event-BaseEvent.html#event:change">change</a>
                                    <li data-name="change:active">change:active
                                    <li data-name="drawabort"><a
                                            href="module-ol_interaction_Draw.DrawEvent.html#event:drawabort">drawabort</a>
                                    <li data-name="drawend"><a
                                            href="module-ol_interaction_Draw.DrawEvent.html#event:drawend">drawend</a>
                                    <li data-name="drawstart"><a
                                            href="module-ol_interaction_Draw.DrawEvent.html#event:drawstart">drawstart</a>
                                    <li data-name="error"><a
                                            href="module-ol_events_Event-BaseEvent.html#event:error">error</a>
                                    <li data-name="propertychange"><a
                                            href="module-ol_Object.ObjectEvent.html#event:propertychange">propertychange</a>
                                </ul>
                            </div>
                        <li class="loading">Loading …
                    </ul>
                </div>
            </div>

            <div class="main col-md-8 col-lg-9">
                <h1 class="page-title" data-filename="module-ol_interaction_Draw-Draw.html">Class: Draw</h1>
                <div id="latest-check" class="alert alert-warning alert-dismissible" role="alert" style="display:none">
                    <button id="latest-dismiss" type="button" class="btn-close" data-bs-dismiss="alert"
                        aria-label="Close"></button>
                    This documentation is for OpenLayers v<span id="package-version">8.2.0</span>. The <a
                        id="latest-link" href="#" class="alert-link">latest</a> is v<span id="latest-version"></span>.
                </div>




                <section class="content">

                    <header>
                        <h2 class="my-3">
                            <span class="ancestors"><a
                                    href="module-ol_interaction_Draw.html">ol/interaction/Draw</a>~</span>Draw
                        </h2>
                        <br>



                        <pre
                            class="prettyprint source"><code>import Draw from '<a href="module-ol_interaction_Draw.html">ol/interaction/Draw</a>.js';</code></pre>


                        <div class="row p-3 ">
                            <!-- <div id="ad" class="col-lg-5 order-2 align-self-center border rounded bg-light ">
                                <script async type="text/javascript"
                                    src="https://cdn.carbonads.com/carbon.js?serve=CE7DV53U&placement=openlayersorg"
                                    id="_carbonads_js"></script>
                            </div> -->

                            <div class="class-description col-lg-7 align-self-center ps-0">
                                <p>绘制几何要素的交互。</p>
                            </div>

                        </div>
                    </header>

                    <article>
                        <div class="container-overview">



                            <dl>

                                <dt class="">

                                    <div class="nameContainer">
                                        <div class="anchor" id="Draw">
                                        </div>
                                        <h4 class="name">
                                            new Draw<span class="signature">(options)</span>



                                        </h4>

                                        <div class="tag-source">
                                            <a
                                                href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js">interaction/Draw.js</a>,
                                            <a
                                                href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js#L594">line
                                                594</a>
                                        </div>

                                    </div>


                                </dt>
                                <dd class="">













                                    <table class="params">
                                        <thead>
                                            <tr>

                                                <th>Name</th>


                                                <th>Type</th>

                                                <th class="last">Description</th>
                                            </tr>
                                        </thead>

                                        <tbody>


                                            <tr class="">

                                                <td class="name"><code>type</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_geom_Geometry.html#~Type">Type</a></span>




                                                </td>



                                                <td class="description last">

                                                    <p>用这个实例绘制的几何体的几何类型。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>clickTolerance</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>



                                                    (defaults to 6)


                                                </td>



                                                <td class="description last">

                                                    <p>“up”事件与“down”事件之间的最大像素距离，以便将“up”事件视为“click”事件，并将点/顶点添加到正在绘制的几何体中。选择默认值6是为了使绘制交互在鼠标和触摸设备上都能正确运行。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>features</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_Collection-Collection.html">Collection</a>&lt;<a
                                                            href="module-ol_Feature-Feature.html">Feature</a>></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>绘制要素的目标集合。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>source</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_source_Vector-VectorSource.html">VectorSource</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>绘制要素的目标源。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>dragVertexDelay</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>



                                                    (defaults to 500)


                                                </td>



                                                <td class="description last">

                                                    <p>在将当前顶点拖动到其确切位置之前，指针向下延迟（以毫秒为单位）。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>snapTolerance</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>



                                                    (defaults to 12)


                                                </td>



                                                <td class="description last">

                                                    <p>用于捕捉到绘图完成的像素距离。必须大于 <code>0</code>.</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>stopClick</code></td>



                                                <td class="type">


                                                    <span class="param-type">boolean</span>



                                                    (defaults to false)


                                                </td>



                                                <td class="description last">

                                                    <p>在绘图过程中停止触发单击、单击和双击事件。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>maxPoints</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>在完成多边形环或线串之前可以绘制的点数。默认情况下，没有限制。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>minPoints</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>在完成多边形环或线串之前必须绘制的点数。默认值适用于 3 多边形环和 2 线串。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>finishCondition</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_events_condition.html#~Condition">Condition</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>一个函数，它接受 并<a
                                                            href="module-ol_MapBrowserEvent-MapBrowserEvent.html"><code>MapBrowserEvent</code></a>
                                                        返回一个布尔值，以指示绘图是否可以完成。在绘制 POINT 或 MULTI_POINT 几何图形时不使用。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>style</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_style_Style.html#~StyleLike">StyleLike</a></span>
                                                    |

                                                    <span class="param-type"><a
                                                            href="module-ol_style_flat.html#~FlatStyleLike">FlatStyleLike</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>草图特性的样式。根据模式，绘制交互可以最多有三个草图特性。它始终包含一个与当前光标位置相对应的具有点几何图形的特性。如果模式是<code>LineString</code>
                                                        or <code>Polygon</code>,
                                                        并且至少绘制了一个点，则它还将包含一个具有 <code>LineString</code>
                                                        几何图形的特性，该特性对应于已绘制点之间和当前光标位置之间的线。如果模式是<code>Polygon</code>，并且至少绘制了一个点，则它还将包含一个具有
                                                        <code>Polygon</code>几何图形的特性，该特性对应于已绘制点和当前光标位置之间的多边形（请注意，如果仅绘制了一个点，则此多边形只有两个点）。如果模式是<code>Circle</code>,
                                                        并且绘制了一个点，则它还将包含一个具有<code>Circle</code>几何图形的特性，其中心是绘制的点，半径由绘制的点和光标之间的距离确定。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>geometryFunction</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_interaction_Draw.html#~GeometryFunction">GeometryFunction</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>更新几何坐标时调用的函数。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>geometryName</code></td>



                                                <td class="type">


                                                    <span class="param-type">string</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>用于绘制交互创建的特征的几何名称。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>condition</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_events_condition.html#~Condition">Condition</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>一个函数，它接受 <a
                                                            href="module-ol_MapBrowserEvent-MapBrowserEvent.html"><code>MapBrowserEvent</code></a>并返回一个布尔值，以指示是否应处理该事件。默认情况下<a
                                                            href="module-ol_events_condition.html#.noModifierKeys"><code>noModifierKeys</code></a>，即单击、添加顶点或停用手绘。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>freehand</code></td>



                                                <td class="type">


                                                    <span class="param-type">boolean</span>



                                                    (defaults to false)


                                                </td>



                                                <td class="description last">

                                                    <p>在手绘模式下对线、多边形和圆进行操作。这使得交互始终以徒手模式运行，并优先于任何
                                                        <code>freehandCondition</code>选项。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>freehandCondition</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_events_condition.html#~Condition">Condition</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>激活线条和多边形的手绘条件。此函数接受<a
                                                            href="module-ol_MapBrowserEvent-MapBrowserEvent.html"><code>MapBrowserEvent</code></a>
                                                        并返回一个布尔值，以指示是否应处理该事件。默认值为<a
                                                            href="module-ol_events_condition.html#.shiftKeyOnly"><code>shiftKeyOnly</code></a>，表示
                                                        Shift 键激活手绘。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>trace</code></td>



                                                <td class="type">


                                                    <span class="param-type">boolean</span>
                                                    |

                                                    <span class="param-type"><a
                                                            href="module-ol_events_condition.html#~Condition">Condition</a></span>



                                                    (defaults to false)


                                                </td>



                                                <td class="description last">

                                                    <p>描摹另一个几何图形的一部分。在徒手模式下被忽略。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>traceSource</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_source_Vector-VectorSource.html">VectorSource</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>要追踪的特征的来源。如果跟踪处于活动状态且未提供
                                                        a<code>traceSource</code>,<code>source</code>则将使用交互。跟踪要求使用<code>traceSource</code>
                                                        或<code>source</code>.
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>wrapX</code></td>



                                                <td class="type">


                                                    <span class="param-type">boolean</span>



                                                    (defaults to false)


                                                </td>



                                                <td class="description last">

                                                    <p>将世界水平包裹在草图叠加上。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>geometryLayout</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_geom_Geometry.html#~GeometryLayout">GeometryLayout</a></span>



                                                    (defaults to 'XY')


                                                </td>



                                                <td class="description last">

                                                    <p>由绘制交互创建的特征几何的布局。</p>
                                                </td>
                                            </tr>


                                        </tbody>
                                    </table>




                                    <dl class="details">





















                                    </dl>



                                    <h5>Fires:</h5>
                                    <ul>
                                        <li class="">
                                            <code><a href="module-ol_events_Event-BaseEvent.html#event:change">change</a></code>
                                            (<a href="module-ol_events_Event-BaseEvent.html">BaseEvent</a>)
                                            -通用更改事件。在修订计数器增加时触发。
                                        </li>

                                        <li class="">
                                            <code>change:active</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)




                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_interaction_Draw.DrawEvent.html#event:drawabort">drawabort</a></code>

                                            (<a href="module-ol_interaction_Draw.DrawEvent.html">DrawEvent</a>)



                                            -
                                            在要素绘制中止时触发

                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_interaction_Draw.DrawEvent.html#event:drawend">drawend</a></code>

                                            (<a href="module-ol_interaction_Draw.DrawEvent.html">DrawEvent</a>)



                                            -
                                            在特征绘制结束时触发

                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_interaction_Draw.DrawEvent.html#event:drawstart">drawstart</a></code>

                                            (<a href="module-ol_interaction_Draw.DrawEvent.html">DrawEvent</a>)



                                            -
                                            在要素绘制开始时触发

                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_events_Event-BaseEvent.html#event:error">error</a></code>
                                            (<a
                                                href="module-ol_events_Event-BaseEvent.html">BaseEvent</a>)-通用错误事件。在发生错误时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_Object.ObjectEvent.html#event:propertychange">propertychange</a></code>
                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>) - 当属性发生更改时触发。
                                        </li>
                                    </ul>











                                </dd>

                            </dl>

                        </div>




                        <h3 class="subsection-title">Extends</h3>

                        <ul>
                            <li><a href="module-ol_interaction_Pointer-PointerInteraction.html">PointerInteraction</a>
                            </li>
                        </ul>











                        <h3 class="subsection-title">Observable Properties</h3>
                        <dl>

                            <table class="props">
                                <thead>
                                    <tr>
                                        <th>Name</th>
                                        <th>Type</th>
                                        <th>Settable</th>
                                        <th><a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a> type</th>
                                        <th class="last">Description</th>
                                    </tr>
                                </thead>

                                <tbody>


                                    <tr class="">
                                        <td class="name"><code>active</code></td>
                                        <td class="type">


                                            <span class="param-type">boolean</span>



                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:active</code></td>
                                        <td class="description last">
                                            <p>如果交互处于活动状态，则为<code>true</code>，否则为<code>false</code>。</p>
                                        </td>
                                    </tr>

                                </tbody>
                            </table>
                        </dl>






                        <h3 class="subsection-title">Methods</h3>

                        <dl>


                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="abortDrawing">
                                    </div>
                                    <h4 class="name">
                                        abortDrawing<span class="signature">()</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js">interaction/Draw.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js#L1737">line
                                            1737</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>停止绘制，但不将草图特性添加到目标图层。</p>
                                </div>











                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="appendCoordinates">
                                    </div>
                                    <h4 class="name">
                                        appendCoordinates<span class="signature">(coordinates)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js">interaction/Draw.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js#L1753">line
                                            1753</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>将坐标追加到当前正在绘制的几何图形的末尾。这可以在绘制 LineString 或 Polygons 时使用。坐标将追加到当前 LineString
                                        或当前多边形的外环。如果未绘制几何图形，则将创建一个新几何图形。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>coordinates</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_interaction_Draw.html#~LineCoordType">LineCoordType</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>要附加到坐标数组的线性坐标。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="changed">
                                    </div>
                                    <h4 class="name">
                                        changed<span class="signature">()</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#changed">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L68">line
                                            68</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>增加修订计数器并派发一个 'change' 事件。</p>
                                </div>











                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="dispatchEvent">
                                    </div>
                                    <h4 class="name">
                                        dispatchEvent<span class="signature">(event)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean | undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_events_Target-Target.html#dispatchEvent">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/events/Target.js">events/Target.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/events/Target.js#L85">line
                                            85</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>派发一个事件并调用所有监听此类型事件的监听器。事件参数可以是字符串或具有 <code>type</code>属性的对象。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>event</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_events_Event-BaseEvent.html">BaseEvent</a></span>
                                                |

                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">

                                                <p>Event object.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                如果任何人在事件对象上调用 preventDefault，或者如果任何监听器返回 false，则为<code>false</code>。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="extend">
                                    </div>
                                    <h4 class="name">
                                        extend<span class="signature">(feature)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js">interaction/Draw.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js#L1802">line
                                            1802</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>通过从现有几何体开始启动绘制模式，该几何体将获得新的附加点。这仅适用于具有<code>LineString</code>
                                        几何的要素，其中交互将通过向坐标数组的末尾添加点来扩展线。这将更改原始特征，而不是绘制副本。
                                    </p>
                                    <p>该函数将调度一个<code>drawstart</code>事件。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>feature</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_Feature-Feature.html">Feature</a>&lt;<a
                                                        href="module-ol_geom_LineString-LineString.html">LineString</a>></span>




                                            </td>



                                            <td class="description last">

                                                <p>要扩展的功能。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="finishDrawing">
                                    </div>
                                    <h4 class="name">
                                        finishDrawing<span class="signature">()</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js">interaction/Draw.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js#L1671">line
                                            1671</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>停止绘制并将草图特征添加到目标图层。在<code>DRAWEND</code>插入要素之前调度该事件。</p>
                                </div>











                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="get">
                                    </div>
                                    <h4 class="name">
                                        get<span class="signature">(key)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{*}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#get">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L135">line
                                            135</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取一个值。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>key</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Value.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getActive">
                                    </div>
                                    <h4 class="name">
                                        getActive<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean}</span>

                                        <span class="inherited"><a
                                                href="module-ol_interaction_Interaction-Interaction.html#getActive">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Interaction.js">interaction/Interaction.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Interaction.js#L82">line
                                            82</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>返回交互当前是否处于活动状态。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>如果交互处于活动状态，则为 <code>true</code>，否则为<code>false</code> 。<br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getKeys">
                                    </div>
                                    <h4 class="name">
                                        getKeys<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Array.&lt;string>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#getKeys">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L148">line
                                            148</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">



                                <div class="description">
                                    <p>获取对象属性名称的列表。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                属性名称列表。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getMap">
                                    </div>
                                    <h4 class="name">
                                        getMap<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a href="module-ol_Map-Map.html">Map</a>
                                            | null}</span>

                                        <span class="inherited"><a
                                                href="module-ol_interaction_Interaction-Interaction.html#getMap">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Interaction.js">interaction/Interaction.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Interaction.js#L91">line
                                            91</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取与此交互关联的地图。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Map.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getOverlay">
                                    </div>
                                    <h4 class="name">
                                        getOverlay<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_layer_Vector-VectorLayer.html">VectorLayer</a>}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js">interaction/Draw.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js#L979">line
                                            979</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取此交互渲染草图要素的叠加层。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Overlay layer.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getPointerCount">
                                    </div>
                                    <h4 class="name">
                                        getPointerCount<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>

                                        <span class="inherited"><a
                                                href="module-ol_interaction_Pointer-PointerInteraction.html#getPointerCount">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Pointer.js">interaction/Pointer.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Pointer.js#L95">line
                                            95</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>返回当前交互中涉及的指针（如手指或触控笔）数量，例如使用两个手指时返回<code>2</code> 。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                The number of pointers.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getProperties">
                                    </div>
                                    <h4 class="name">
                                        getProperties<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Object.&lt;string, *>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#getProperties">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L157">line
                                            157</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取包含所有属性名称和值的对象。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Object.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getRevision">
                                    </div>
                                    <h4 class="name">
                                        getRevision<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#getRevision">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L79">line
                                            79</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取此对象的版本号。每次对象被修改时，其版本号将递增。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Revision.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="handleEvent">
                                    </div>
                                    <h4 class="name">
                                        handleEvent<span class="signature">(event)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js">interaction/Draw.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js#L989">line
                                            989</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>处理<a
                                            href="module-ol_MapBrowserEvent-MapBrowserEvent.html"><code>map browser event</code></a>
                                        并可能实际绘制或完成绘图。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>event</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_MapBrowserEvent-MapBrowserEvent.html">MapBrowserEvent</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>Map browser event.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                将事件传播设置为<code>false</code>。 <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="on">
                                    </div>
                                    <h4 class="name">
                                        on<span class="signature">(type, listener)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a> | Array&lt;<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a>>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#on">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L152">line
                                            152</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>监听特定类型的事件。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>type</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>




                                            </td>



                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>listener</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">
                                                <p>侦听器函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                监听器的唯一键。如果将事件类型的数组作为第一个参数调用，返回将是键的数组。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="once">
                                    </div>
                                    <h4 class="name">
                                        once<span class="signature">(type, listener)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a> | Array&lt;<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a>>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#once">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L164">line
                                            164</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>仅监听特定类型的事件一次。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>type</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>




                                            </td>



                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>listener</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">
                                                <p>侦听器函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                监听器的唯一键。如果将事件类型的数组作为第一个参数调用，返回将是键的数组。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="removeLastPoint">
                                    </div>
                                    <h4 class="name">
                                        removeLastPoint<span class="signature">()</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js">interaction/Draw.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Draw.js#L1661">line
                                            1661</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>移除当前正在绘制的要素的最后一个点。绘制 POINT 或MULTI_POINT几何图形时不执行任何操作。</p>
                                </div>











                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="set">
                                    </div>
                                    <h4 class="name">
                                        set<span class="signature">(key, value, <span
                                                class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#set">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L215">line
                                            215</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置值。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>key</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>value</code></td>



                                            <td class="type">


                                                <span class="param-type">*</span>




                                            </td>



                                            <td class="description last">

                                                <p>Value.</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>silent</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>

                                                | undefined


                                            </td>



                                            <td class="description last">
                                                <p>是否在不触发事件的情况下进行更新。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setActive">
                                    </div>
                                    <h4 class="name">
                                        setActive<span class="signature">(active)</span>

                                        <span class="inherited"><a
                                                href="module-ol_interaction_Interaction-Interaction.html#setActive">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Interaction.js">interaction/Interaction.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/interaction/Interaction.js#L111">line
                                            111</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>激活或停用交互。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>active</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>




                                            </td>



                                            <td class="description last">

                                                <p>Active.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setProperties">
                                    </div>
                                    <h4 class="name">
                                        setProperties<span class="signature">(values, <span
                                                class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#setProperties">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L235">line
                                            235</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置一个键值对的集合。请注意，这将更改任何现有属性并添加新属性（不会删除任何现有属性）。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>values</code></td>



                                            <td class="type">


                                                <span class="param-type">Object.&lt;string, *></span>




                                            </td>



                                            <td class="description last">

                                                <p>Values.</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>silent</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>

                                                | undefined


                                            </td>



                                            <td class="description last">
                                                <p>是否在不触发事件的情况下进行更新。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="un">
                                    </div>
                                    <h4 class="name">
                                        un<span class="signature">(type, listener)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#un">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L173">line
                                            173</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>取消监听特定类型的事件。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>type</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>




                                            </td>



                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>listener</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">
                                                <p>侦听器函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="unset">
                                    </div>
                                    <h4 class="name">
                                        unset<span class="signature">(key, <span class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#unset">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L259">line
                                            259</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>取消设置属性。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>key</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>silent</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>

                                                | undefined


                                            </td>



                                            <td class="description last">
                                                <p>在不触发事件的情况下取消设置属性。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>

                        </dl>





                    </article>

                </section>




            </div>
        </div>
    </div>
    <script>prettyPrint();</script>
    <script src="scripts/linenumber.js"></script>
    <script src="scripts/main.js"></script>
</body>

</html>